package net.osweb.crm.modules.core.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Userportlet entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "core_userportlet")
public class UserPortlet implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -8869141682129939599L;
	private Integer id;
	private Integer userid;
	private String portletname;
	private Integer status;
	private Integer category;
	private String comment;

	// Constructors

	/** default constructor */
	public UserPortlet() {
	}

	/** full constructor */
	public UserPortlet(Integer userid, String portletname, Integer status,
			Integer category, String comment) {
		this.userid = userid;
		this.portletname = portletname;
		this.status = status;
		this.category = category;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "portletname")
	public String getPortletname() {
		return this.portletname;
	}

	public void setPortletname(String portletname) {
		this.portletname = portletname;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "category")
	public Integer getCategory() {
		return this.category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}